import request from '@/utils/request'

export function listMember(query) {
  return request({
    url: '/member/list',
    method: 'get',
    params: query
  })
}

export function createMember(data) {
  return request({
    url: '/member/create',
    method: 'post',
    data
  })
}

export function readMember(data) {
  return request({
    url: '/member/read',
    method: 'get',
    data
  })
}

export function updateMember(data) {
  return request({
    url: '/member/update',
    method: 'post',
    data
  })
}

export function deleteMember(data) {
  return request({
    url: '/member/delete',
    method: 'post',
    data
  })
}
